package com.zzyy.study.rabbitmq;

import jakarta.annotation.Resource;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @auther zzyy
 * @create 2024-07-07 16:04
 */
@Service
public class RabbitMQSend
{
    @Resource
    private RabbitTemplate rabbitTemplate;

    public void send(String message)
    {
        rabbitTemplate.convertAndSend(QueueConstants.TEST,message);
    }
}
